<template>
  <div class="error_box">
    <div class="error_con">
      <div class="left">
        <h1>404</h1>
        <p>地址输入错误，请重新输入地址</p>
        <el-button type="primary" color="#626aef" @click="goHome">返回首页</el-button>
      </div>
      <img src="../../assets/images/error_images/404.png" alt="">
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router';
let $router = useRouter();
const goHome = () => {
  $router.push('/home')
}
</script>

<style scoped lang="scss">
.error_box {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  .error_con{
    height: 60%;
    width: 50%;
    display: flex;
    justify-content: space-between;
    h1{
      color: #909399;
      font-size: 55px;
    }
    p{
      font-size: 20px;
      color: #303133;
      margin: 30px 0;
    }
    .el-button{
      border-radius: 20px;
    }
    img{
      height: 100%;
      border: 1px solid #e4e7ed;
    }
  }
}
</style>